package com.hzf.config.dao.model;

import java.io.Serializable;

public class ConfigRegion implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer regionId;

    /**
     * 地区名称
     *
     * @mbg.generated
     */
    private String regionName;

    /**
     * 地区编号
     *
     * @mbg.generated
     */
    private Long regionNumber;

    /**
     * 上级编号
     *
     * @mbg.generated
     */
    private Integer superiorId;

    /**
     * 地区类型
     *
     * @mbg.generated
     */
    private Long regionType;

    private static final long serialVersionUID = 1L;

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public Long getRegionNumber() {
        return regionNumber;
    }

    public void setRegionNumber(Long regionNumber) {
        this.regionNumber = regionNumber;
    }

    public Integer getSuperiorId() {
        return superiorId;
    }

    public void setSuperiorId(Integer superiorId) {
        this.superiorId = superiorId;
    }

    public Long getRegionType() {
        return regionType;
    }

    public void setRegionType(Long regionType) {
        this.regionType = regionType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", regionId=").append(regionId);
        sb.append(", regionName=").append(regionName);
        sb.append(", regionNumber=").append(regionNumber);
        sb.append(", superiorId=").append(superiorId);
        sb.append(", regionType=").append(regionType);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ConfigRegion other = (ConfigRegion) that;
        return (this.getRegionId() == null ? other.getRegionId() == null : this.getRegionId().equals(other.getRegionId()))
            && (this.getRegionName() == null ? other.getRegionName() == null : this.getRegionName().equals(other.getRegionName()))
            && (this.getRegionNumber() == null ? other.getRegionNumber() == null : this.getRegionNumber().equals(other.getRegionNumber()))
            && (this.getSuperiorId() == null ? other.getSuperiorId() == null : this.getSuperiorId().equals(other.getSuperiorId()))
            && (this.getRegionType() == null ? other.getRegionType() == null : this.getRegionType().equals(other.getRegionType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRegionId() == null) ? 0 : getRegionId().hashCode());
        result = prime * result + ((getRegionName() == null) ? 0 : getRegionName().hashCode());
        result = prime * result + ((getRegionNumber() == null) ? 0 : getRegionNumber().hashCode());
        result = prime * result + ((getSuperiorId() == null) ? 0 : getSuperiorId().hashCode());
        result = prime * result + ((getRegionType() == null) ? 0 : getRegionType().hashCode());
        return result;
    }
}